/DIV>
GetWindowAttributes
Obtains
the attributes of a window.
pascal OSStatus GetWindowAttributes (
WindowPtr window,
WindowAttributes *outAttributes);
-
window
-
A value of type
WindowPtr
. Pass a pointer to the window whose attributes you wish to obtain.
-
outAttributes
-
A pointer to an unsigned 32-bit value of type
WindowAttributes
. On return, the bits are set to the attributes of the specified window. See
Window Attribute Constants for a description of possible attributes. With Mac OS 8.5, if the window was not originally created using the function
CreateNewWindow
, then all attribute bits are set to 0, and
GetWindowAttributes
returns a
paramErr
(-50) result.
-
function result
-
A result code. See
Result Codes.
DISCUSSION
Window attributes specify a window's features (such as whether the window has a close box) and logical attributes (such as whether the window receives update and activate events).
VERSION NOTES
Available with Mac OS 8.5 and later.
© 1999 Apple Computer, Inc. – (Last Updated 18 March 99)